<extend name="Public/base"/>

<block name="body">
    <script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
    <div class="main-title">
        <h2>更新群主信息</h2>
    </div>
    <form action="{:U()}" method="post" class="form-horizontal">
        <div class="form-item">
            <label class="item-label">群名称<span class="check-tips">(群名称)</span> </label>
            <div class="controls">
                <input type="text" class="text input-large" name="lord_name" value="{$info.lord_name}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">群主姓名<span class="check-tips">(群主姓名)</span> </label>
            <div class="controls">
                <input type="text" class="text input-large" name="user_name" value="{$info.user_name}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">联系电话<span class="check-tips">(联系电话)</span> </label>
            <div class="controls">
                <input type="text" class="text input-large" name="user_phone" value="{$info.user_phone}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">群介绍<span class="check-tips">(群介绍)</span> </label>
            <div class="controls">
                <input type="text" class="text input-large" name="lord_summary" value="{$info.lord_summary}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">拉票宣言<span class="check-tips">(拉票宣言)</span> </label>
            <div class="controls">
                <input type="text" class="text input-large" name="lord_manifesto" value="{$info.lord_manifesto}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">拉票宣言<span class="check-tips">(拉票宣言)</span> </label>
            <div class="controls">
                <input type="text" class="text input-large" name="lord_manifesto" value="{$info.lord_manifesto}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">添加时间<span class="check-tips">（添加时间）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="create_time" value="{$info.create_time}">
            </div>
        </div>
        <div class="controls">
            <label class="item-label">群图片</label>
            <input type="file" id="upload_picture">
            <input type="hidden" name="lord_img" id="lord_img" value="{$info['lord_img']|default=''}"/>
            <div class="upload-img-box">
                <notempty name="lord_info['lord_img']">
                    <div class="upload-pre-item"><img src="{$info.lord_img|get_cover='path'}"/></div>
                </notempty>
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">群描述<span class="check-tips">（群描述）</span></label>
            <div class="controls">
                <label class="textarea input-large">
                    <textarea name="content">{$info.content}</textarea>
                </label>
            </div>
        </div>
        <div class="form-item">
            <input name="order_id" type="hidden" value="{$order_info.order_id}">
            <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">
    <link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
    <php>if(C('COLOR_STYLE')=='blue_color') echo '<link href="__STATIC__/datetimepicker/css/datetimepicker_blue.css" rel="stylesheet" type="text/css">';</php>
    <link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
    <script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('Order/index')}');

        $('#time-start').datetimepicker({
            format: 'yyyy-mm-dd',
            language:"zh-CN",
            minView:2,
            autoclose:true
        });

        $('#time-end').datetimepicker({
            format: 'yyyy-mm-dd',
            language:"zh-CN",
            minView:2,
            autoclose:true
        });
    </script>
</block>
